package com.sskj.aikeeper.hangqing.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.sskj.aikeeper.R;
import com.sskj.aikeeper.presenter.SafeCenterPresenter;
import com.sskj.common.base.App;
import com.sskj.common.util.ClickUtil;
import com.sskj.lib.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * @author Hey
 * Create at  2019/06/25
 */
public class SafeCenterActivity extends BaseActivity<SafeCenterPresenter> {


    @BindView(R.id.tvTitle)
    TextView tvTitle;
    @BindView(R.id.ll_login_pwd)
    LinearLayout llLoginPwd;
    @BindView(R.id.ll_pay_pwd)
    LinearLayout llPayPwd;

    @Override
    public int getLayoutId() {
        return R.layout.app_activity_safe_center;
    }

    @Override
    public SafeCenterPresenter getPresenter() {
        return new SafeCenterPresenter();
    }

    @Override
    public void initView() {
        tvTitle.setText(App.INSTANCE.getString(R.string.app_safeCenterActivity1));

    }

    @Override
    public void initData() {
        ClickUtil.click(300, llLoginPwd, () -> {
            ChangeLoginActivity.start(SafeCenterActivity.this);
        });
        ClickUtil.click(300, llPayPwd, () -> {
            ChangePayActivity.start(SafeCenterActivity.this);
        });

    }

    public static void start(Context context) {
        Intent intent = new Intent(context, SafeCenterActivity.class);
        context.startActivity(intent);
    }
}
